// 实习材料DTO
package org.example.backend.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class InternshipMaterialDto {
    private Long id;

    private Long internshipId;

    @NotNull(message = "材料类型不能为空")
    @Min(value = 1, message = "材料类型不能小于1")
    @Max(value = 4, message = "材料类型不能大于4")
    private Integer type; // 1周志 2实习报告 3最终成果 4其他

    @NotBlank(message = "材料标题不能为空")
    private String title;

    private String content;

    private String fileUrl;

    private Integer status; // 0待审核 1已通过 2已拒绝
}
